package lhb.test.SC.uum.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

import feign.Param;
import lhb.test.SC.uum.model.User;

@FeignClient(name="uum")
public interface UserClient {
	
	/**
	 * 携带cookie
	 * @param cookie
	 * @return
	 */
	@RequestMapping("/user/getUserCount")
	public int getUserCount(@RequestHeader("cookie") String cookie);
	
	/**
	 * 没有携带cookie
	 * @return
	 */
	@RequestMapping("/user/getUserCount")
	public int getUserCount();
	
	
	
	@RequestMapping("/getUserById")
	public User getUserById(@Param("id")String id);
	
}
